#include"comm.hpp"

int main()
{
    //创建key
    key_t k=GetKey();
    cout<<"server:"<<toHex(k)<<endl;
    //创建共享内存
    int shmid=creatShm(k,gsize);
    cout<<"server shmid:"<<shmid<<endl;
    sleep(5);
    delshm(shmid);
    return 0;
}